import http from "@/utils/http.js"

const url = {
    // 查询日报表
    recordsCenterQueryResult: "/lab/recordsCenter/queryResult",
    // 上报数据
    recordsCenterReportData: "/lab/recordsCenter/reportData",
    // 上报数据
    recordsCenterExportResult: "/lab/recordsCenter/exportResult",
    // 查询流程记录
    recordsCenterQueryProcessRecord: "/lab/recordsCenter/queryProcessRecord",
    // 查询临时任务
    recordsCenterQueryTemporaryResult: "/lab/recordsCenter/queryTemporaryResult",
    // 查询审核数据
    recordsCenterQueryAudit: "/lab/recordsCenter/queryAudit",
    // 复核
    recordsCenterReviewData: "/lab/recordsCenter/reviewData",
    // 审核
    recordsCenterAuditData: "/lab/recordsCenter/auditData",
}

export default {
    url: url,
    // 查询日报表
    recordsCenterQueryResult(params) {
        return http.post(url.recordsCenterQueryResult, params)
    },
    // 上报数据
    recordsCenterReportData(params) {
        return http.post(url.recordsCenterReportData, params)
    },
    // 上报数据
    recordsCenterExportResult(params) {
        return http.export(url.recordsCenterExportResult, params, 'post')
    },
    // 查询流程记录
    recordsCenterQueryProcessRecord(params) {
        return http.post(url.recordsCenterQueryProcessRecord, params)
    },
    // 查询临时任务
    recordsCenterQueryTemporaryResult(params) {
        return http.post(url.recordsCenterQueryTemporaryResult, params)
    },
    // 查询审核数据
    recordsCenterQueryAudit(params) {
        return http.post(url.recordsCenterQueryAudit, params)
    },
    // 复核
    recordsCenterReviewData(params) {
        return http.post(url.recordsCenterReviewData, params)
    },
    // 审核
    recordsCenterAuditData(params) {
        return http.post(url.recordsCenterAuditData, params)
    },
}